package jp.sourceforge.akjrcp.flvtools.dropsomething;

import jp.sourceforge.akjrcp.akj_betas.Messages;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabItem;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;

/**
 * This sample class demonstrates how to plug-in a new workbench view. The view
 * shows data obtained from the model. The sample creates a dummy model on the
 * fly, but a real implementation would connect to the model available either in
 * this or another plug-in (e.g. the workspace). The view is connected to the
 * model using a content provider.
 * <p>
 * The view uses a label provider to define how model objects should be
 * presented in the view. Each view can present the same model objects using
 * different labels and icons, if needed. Alternatively, a single label provider
 * can be shared between views in order to ensure that objects of the same type
 * are presented in the same way everywhere.
 * <p>
 */

public class DropsomethingView extends ViewPart {
	public static Log log = LogFactory.getLog(DropsomethingView.class);

	public static final String ID = DropsomethingView.class.getName();

	private CTabFolder tab;

	public void createPartControl(Composite root) {
		tab = new CTabFolder(root, SWT.NONE);
		CTabItem tabItem1 = new CTabItem(tab, SWT.NONE);
		tabItem1.setText(Messages.getString("FLV_Convert"));
		tabItem1.setControl(new FLVConvertTab(this,tab,SWT.NONE));
		/*
        tabItem1.setText("Drop and Stretch");
        tabItem1.setControl(new StretchAudioTab(tab,SWT.NONE));
        */
	}

	/**
	 * Passing the focus request to the viewer's control.
	 */
	public void setFocus() {
	tab.forceFocus();
	}

}